/**  
 * All rights Reserved, Designed By www.flksh.com
 * @date:   2017-10-28 14:48:02   
 * @Copyright: 2013-2017 www.flksh.com Inc. All rights reserved. 
 * 注意：本内容仅限于上海福乐康社区养老服务有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.zx.cloud.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zx.cloud.domain.Shop;
import com.zx.cloud.persistence.CrudMapper;
import com.zx.cloud.persistence.ShopMapper;
import com.zx.cloud.util.Page;

/**
 * 会员详细信息
 */
@Service
@Transactional
public class ShopService extends CrudServiceImpl<Shop>{
    
    private static final Logger LOGGER = LoggerFactory.getLogger(ShopService.class);
    
    @Autowired
    private ShopMapper shopMapper;
   
  	@Autowired
    public ShopService(CrudMapper<Shop> mapper) {
        super(mapper);
    }
  	
  	public Page<Shop> findClientAuth(Shop Shop){
  		
		long count = shopMapper.findClientAuthMsgCount(Shop);
		Page<Shop> page = new Page<Shop>(Shop.getPageIndex_(), Shop.getPageSize_());
		page.setData(shopMapper.findClientAuthMsg(Shop));
		page.setTotalCount(count);
		
		return page;
  	}
}
